//
//  XFPopViewController.h
//  Pods
//
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "XFPopPresentationController.h"

typedef NS_ENUM(NSInteger, XFTransitionAnimationStyle) {
    XFTransitionAnimationStyleDefault,//底部滑出
    XFTransitionAnimationStyleFade,
    XFTransitionAnimationStyleFromBottom,
    XFTransitionAnimationStyleFromRight
};

@interface XFPopViewController : UIViewController <XFPopPresentationDelegate, UIViewControllerTransitioningDelegate>

/*! @brief animation style */
@property (nonatomic, assign) XFTransitionAnimationStyle style;
@property (nonatomic, assign) BOOL dimming;
@property (nonatomic, assign) BOOL shouldDismissWhenTap;
@property (nonatomic, strong) id<UIViewControllerAnimatedTransitioning> animator;
@property (nonatomic, copy) void(^tapDismissBlock)(void);
- (instancetype)initWithAnimationStyle:(XFTransitionAnimationStyle)style;

@end
